#pragma once
#include "CommonDef.h"

class Utils
{
public:
    static Postion getNextShowPostion(Postion ps);

    static Postion getNextDispatchPostion(Postion ps);

    static const std::string chessType2Str(ChessType tp);

    static const std::string chess2Str(const Chess& chess);

    static const std::string postion2Str(Postion ps);

    static const std::string roleType2Str(RoleType rt);

    static const std::string sitPostionType2Str(SitPostion rt);

    static const std::string chessStatusType2Str(ChessStatus rt);

    static short shakeDiceResult();

    static Postion getNextPlayerPsByDice(Postion startPs, short diceCunt);

    static void getChessShowOffset(ShowOffsetPair* result, short maxReperoty, Postion& startPs, short startOffset);

    static SitPostion getPlayerSitPostion(Postion mainPs, Postion playerPs);

    static void setCursorPsn(short x, short y, const std::string& str);

    static void initBackGround();

    static void clearBackGround();

    static void clearTable();

    static void clearPlayTable();

    static std::string sessionAction2Str(SessionAction sa);
};
